Optimal. Leaf size=80 \[ -6 b^3 c \sqrt {1-\frac {1}{c^2 x^2}}+\frac {6 b^2 \left (a+b \sec ^{-1}(c x)\right )}{x}+3 b c \sqrt {1-\frac {1}{c^2 x^2}} \left (a+b \sec ^{-1}(c x)\right )^2-\frac {\left (a+b \sec ^{-1}(c x)\right )^3}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {5330, 3377,
2717} \begin {gather*} \frac {6 b^2 \left (a+b \sec ^{-1}(c x)\right )}{x}+3 b c \sqrt {1-\frac {1}{c^2 x^2}} \left (a+b \sec ^{-1}(c x)\right )^2-\frac {\left (a+b \sec ^{-1}(c x)\right )^3}{x}-6 b^3 c \sqrt {1-\frac {1}{c^2 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2717
Rule 3377
Rule 5330
Rubi steps
\begin {align*} \int \frac {\left (a+b \sec ^{-1}(c x)\right )^3}{x^2} \, dx &=c \text {Subst}\left (\int (a+b x)^3 \sin (x) \, dx,x,\sec ^{-1}(c x)\right )\\ &=-\frac {\left (a+b \sec ^{-1}(c x)\right )^3}{x}+(3 b c) \text {Subst}\left (\int (a+b x)^2 \cos (x) \, dx,x,\sec ^{-1}(c x)\right )\\ &=3 b c \sqrt {1-\frac {1}{c^2 x^2}} \left (a+b \sec ^{-1}(c x)\right )^2-\frac {\left (a+b \sec ^{-1}(c x)\right )^3}{x}-\left (6 b^2 c\right ) \text {Subst}\left (\int (a+b x) \sin (x) \, dx,x,\sec ^{-1}(c x)\right )\\ &=\frac {6 b^2 \left (a+b \sec ^{-1}(c x)\right )}{x}+3 b c \sqrt {1-\frac {1}{c^2 x^2}} \left (a+b \sec ^{-1}(c x)\right )^2-\frac {\left (a+b \sec ^{-1}(c x)\right )^3}{x}-\left (6 b^3 c\right ) \text {Subst}\left (\int \cos (x) \, dx,x,\sec ^{-1}(c x)\right )\\ &=-6 b^3 c \sqrt {1-\frac {1}{c^2 x^2}}+\frac {6 b^2 \left (a+b \sec ^{-1}(c x)\right )}{x}+3 b c \sqrt {1-\frac {1}{c^2 x^2}} \left (a+b \sec ^{-1}(c x)\right )^2-\frac {\left (a+b \sec ^{-1}(c x)\right )^3}{x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 141, normalized size = 1.76 \begin {gather*} \frac {-a^3+6 a b^2+3 a^2 b c \sqrt {1-\frac {1}{c^2 x^2}} x-6 b^3 c \sqrt {1-\frac {1}{c^2 x^2}} x+3 b \left (-a^2+2 b^2+2 a b c \sqrt {1-\frac {1}{c^2 x^2}} x\right ) \sec ^{-1}(c x)+3 b^2 \left (-a+b c \sqrt {1-\frac {1}{c^2 x^2}} x\right ) \sec ^{-1}(c x)^2-b^3 \sec ^{-1}(c x)^3}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(197\) vs.
\(2(76)=152\).
time = 0.20, size = 198, normalized size = 2.48
method | result | size |
derivativedivides | \(c \left (-\frac {a^{3}}{c x}+b^{3} \left (-\frac {\mathrm {arcsec}\left (c x \right )^{3}}{c x}+3 \mathrm {arcsec}\left (c x \right )^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}-6 \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}+\frac {6 \,\mathrm {arcsec}\left (c x \right )}{c x}\right )+3 a \,b^{2} \left (-\frac {\mathrm {arcsec}\left (c x \right )^{2}}{c x}+\frac {2}{c x}+2 \,\mathrm {arcsec}\left (c x \right ) \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\right )+3 a^{2} b \left (-\frac {\mathrm {arcsec}\left (c x \right )}{c x}+\frac {c^{2} x^{2}-1}{\sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, c^{2} x^{2}}\right )\right )\) | \(198\) |
default | \(c \left (-\frac {a^{3}}{c x}+b^{3} \left (-\frac {\mathrm {arcsec}\left (c x \right )^{3}}{c x}+3 \mathrm {arcsec}\left (c x \right )^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}-6 \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}+\frac {6 \,\mathrm {arcsec}\left (c x \right )}{c x}\right )+3 a \,b^{2} \left (-\frac {\mathrm {arcsec}\left (c x \right )^{2}}{c x}+\frac {2}{c x}+2 \,\mathrm {arcsec}\left (c x \right ) \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\right )+3 a^{2} b \left (-\frac {\mathrm {arcsec}\left (c x \right )}{c x}+\frac {c^{2} x^{2}-1}{\sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, c^{2} x^{2}}\right )\right )\) | \(198\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 146, normalized size = 1.82 \begin {gather*} -\frac {b^{3} \operatorname {arcsec}\left (c x\right )^{3}}{x} + 3 \, {\left (c \sqrt {-\frac {1}{c^{2} x^{2}} + 1} - \frac {\operatorname {arcsec}\left (c x\right )}{x}\right )} a^{2} b + 6 \, {\left (c \sqrt {-\frac {1}{c^{2} x^{2}} + 1} \operatorname {arcsec}\left (c x\right ) + \frac {1}{x}\right )} a b^{2} + 3 \, {\left (c \sqrt {-\frac {1}{c^{2} x^{2}} + 1} \operatorname {arcsec}\left (c x\right )^{2} - 2 \, c \sqrt {-\frac {1}{c^{2} x^{2}} + 1} + \frac {2 \, \operatorname {arcsec}\left (c x\right )}{x}\right )} b^{3} - \frac {3 \, a b^{2} \operatorname {arcsec}\left (c x\right )^{2}}{x} - \frac {a^{3}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.81, size = 98, normalized size = 1.22 \begin {gather*} -\frac {b^{3} \operatorname {arcsec}\left (c x\right )^{3} + 3 \, a b^{2} \operatorname {arcsec}\left (c x\right )^{2} + a^{3} - 6 \, a b^{2} + 3 \, {\left (a^{2} b - 2 \, b^{3}\right )} \operatorname {arcsec}\left (c x\right ) - 3 \, {\left (b^{3} \operatorname {arcsec}\left (c x\right )^{2} + 2 \, a b^{2} \operatorname {arcsec}\left (c x\right ) + a^{2} b - 2 \, b^{3}\right )} \sqrt {c^{2} x^{2} - 1}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \operatorname {asec}{\left (c x \right )}\right )^{3}}{x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 196 vs.
\(2 (76) = 152\).
time = 0.44, size = 196, normalized size = 2.45 \begin {gather*} {\left (3 \, b^{3} \sqrt {-\frac {1}{c^{2} x^{2}} + 1} \arccos \left (\frac {1}{c x}\right )^{2} + 6 \, a b^{2} \sqrt {-\frac {1}{c^{2} x^{2}} + 1} \arccos \left (\frac {1}{c x}\right ) - \frac {b^{3} \arccos \left (\frac {1}{c x}\right )^{3}}{c x} + 3 \, a^{2} b \sqrt {-\frac {1}{c^{2} x^{2}} + 1} - 6 \, b^{3} \sqrt {-\frac {1}{c^{2} x^{2}} + 1} - \frac {3 \, a b^{2} \arccos \left (\frac {1}{c x}\right )^{2}}{c x} - \frac {3 \, a^{2} b \arccos \left (\frac {1}{c x}\right )}{c x} + \frac {6 \, b^{3} \arccos \left (\frac {1}{c x}\right )}{c x} - \frac {a^{3}}{c x} + \frac {6 \, a b^{2}}{c x}\right )} c \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.80, size = 156, normalized size = 1.95 \begin {gather*} \frac {b^3\,\left (6\,\mathrm {acos}\left (\frac {1}{c\,x}\right )-{\mathrm {acos}\left (\frac {1}{c\,x}\right )}^3\right )}{x}-\frac {a^3}{x}+3\,a^2\,b\,c\,\left (\sqrt {1-\frac {1}{c^2\,x^2}}-\frac {\mathrm {acos}\left (\frac {1}{c\,x}\right )}{c\,x}\right )+b^3\,c\,\sqrt {1-\frac {1}{c^2\,x^2}}\,\left (3\,{\mathrm {acos}\left (\frac {1}{c\,x}\right )}^2-6\right )+3\,a\,b^2\,c\,\left (2\,\mathrm {acos}\left (\frac {1}{c\,x}\right )\,\sqrt {1-\frac {1}{c^2\,x^2}}-\frac {{\mathrm {acos}\left (\frac {1}{c\,x}\right )}^2-2}{c\,x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________